package com.example.survey_determination.controller;

import com.example.survey_determination.service.WarrantyInfoService;
import entity.warranty_info;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (WarrantyInfo)表控制层
 *
 * @author makejava
 * @since 2022-01-12 17:41:32
 */
@CrossOrigin(methods = {RequestMethod.GET,RequestMethod.POST})
@RestController
@RequestMapping("warrantyInfo")
public class WarrantyInfoController {
    /**
     * 服务对象
     */
    @Resource
    private WarrantyInfoService warrantyInfoService;

    /**
     * 通过主键查询单条数据
     *
     * @return 单条数据
     */
    @RequestMapping("queryById")
    public warranty_info queryById(String claimmainid) {
        return this.warrantyInfoService.queryById(claimmainid);
    }



}

